.class public Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;
.super Lorg/objectweb/asm/MethodAdapter;
.source "ChangeCallsMethodVisitor.java"

# interfaces
.implements Lorg/objectweb/asm/Opcodes;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;
    }
.end annotation


# static fields
.field private static final INJECTED_CLASS:Ljava/lang/String;

.field static NEW_RESOURCE_LOADER_CLASS:Ljava/lang/String;

.field static NEW_SYSTEM_OUT_CLASS:Ljava/lang/String;

.field static NEW_SYSTEM_PROPERTIES_CLASS:Ljava/lang/String;

.field static class$org$microemu$Injected:Ljava/lang/Class;

.field static class$org$microemu$app$util$MIDletThread:Ljava/lang/Class;

.field static class$org$microemu$app$util$MIDletTimer:Ljava/lang/Class;


# instance fields
.field private catchInfo:Ljava/util/HashMap;

.field private config:Lorg/microemu/app/classloader/InstrumentationConfig;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 45
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$Injected:Ljava/lang/Class;

    if-nez v0, :cond_0

    const-string v0, "org.microemu.Injected"

    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$Injected:Ljava/lang/Class;

    :goto_0
    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->codeName(Ljava/lang/Class;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->INJECTED_CLASS:Ljava/lang/String;

    .line 47
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->INJECTED_CLASS:Ljava/lang/String;

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->NEW_SYSTEM_OUT_CLASS:Ljava/lang/String;

    .line 49
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->INJECTED_CLASS:Ljava/lang/String;

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->NEW_SYSTEM_PROPERTIES_CLASS:Ljava/lang/String;

    .line 51
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->INJECTED_CLASS:Ljava/lang/String;

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->NEW_RESOURCE_LOADER_CLASS:Ljava/lang/String;

    return-void

    .line 45
    :cond_0
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$Injected:Ljava/lang/Class;

    goto :goto_0
.end method

.method public constructor <init>(Lorg/objectweb/asm/MethodVisitor;Lorg/microemu/app/classloader/InstrumentationConfig;)V
    .locals 0
    .parameter "mv"
    .parameter "config"

    .prologue
    .line 70
    invoke-direct {p0, p1}, Lorg/objectweb/asm/MethodAdapter;-><init>(Lorg/objectweb/asm/MethodVisitor;)V

    .line 71
    iput-object p2, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->config:Lorg/microemu/app/classloader/InstrumentationConfig;

    .line 72
    return-void
.end method

.method static class$(Ljava/lang/String;)Ljava/lang/Class;
    .locals 2
    .parameter "x0"

    .prologue
    .line 45
    :try_start_0
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    return-object v1

    :catch_0
    move-exception v0

    .local v0, x1:Ljava/lang/ClassNotFoundException;
    new-instance v1, Ljava/lang/NoClassDefFoundError;

    invoke-direct {v1}, Ljava/lang/NoClassDefFoundError;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/NoClassDefFoundError;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    move-result-object v1

    throw v1
.end method

.method public static codeName(Ljava/lang/Class;)Ljava/lang/String;
    .locals 3
    .parameter "klass"

    .prologue
    .line 75
    invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    const/16 v1, 0x2e

    const/16 v2, 0x2f

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public visitFieldInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .parameter "opcode"
    .parameter "owner"
    .parameter "name"
    .parameter "desc"

    .prologue
    const-string v1, "java/lang/System"

    .line 79
    packed-switch p1, :pswitch_data_0

    .line 96
    :cond_0
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    invoke-interface {v0, p1, p2, p3, p4}, Lorg/objectweb/asm/MethodVisitor;->visitFieldInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 97
    :goto_0
    return-void

    .line 81
    :pswitch_0
    const-string v0, "out"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "java/lang/System"

    invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 84
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    sget-object v1, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->NEW_SYSTEM_OUT_CLASS:Ljava/lang/String;

    invoke-interface {v0, p1, v1, p3, p4}, Lorg/objectweb/asm/MethodVisitor;->visitFieldInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 87
    :cond_1
    const-string v0, "err"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "java/lang/System"

    invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 90
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    sget-object v1, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->NEW_SYSTEM_OUT_CLASS:Ljava/lang/String;

    invoke-interface {v0, p1, v1, p3, p4}, Lorg/objectweb/asm/MethodVisitor;->visitFieldInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 79
    nop

    :pswitch_data_0
    .packed-switch 0xb2
        :pswitch_0
    .end packed-switch
.end method

.method public visitLabel(Lorg/objectweb/asm/Label;)V
    .locals 6
    .parameter "label"

    .prologue
    .line 166
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->config:Lorg/microemu/app/classloader/InstrumentationConfig;

    invoke-virtual {v1}, Lorg/microemu/app/classloader/InstrumentationConfig;->isEnhanceCatchBlock()Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->catchInfo:Ljava/util/HashMap;

    if-eqz v1, :cond_0

    .line 167
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->catchInfo:Ljava/util/HashMap;

    invoke-virtual {v1, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;

    .line 168
    .local v0, newHandler:Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;
    if-eqz v0, :cond_0

    .line 169
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    iget-object v2, v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;->label:Lorg/objectweb/asm/Label;

    invoke-interface {v1, v2}, Lorg/objectweb/asm/MethodVisitor;->visitLabel(Lorg/objectweb/asm/Label;)V

    .line 171
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    const/16 v2, 0xb8

    sget-object v3, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->INJECTED_CLASS:Ljava/lang/String;

    const-string v4, "handleCatchThrowable"

    const-string v5, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;"

    invoke-interface {v1, v2, v3, v4, v5}, Lorg/objectweb/asm/MethodVisitor;->visitMethodInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 173
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    const/16 v2, 0xc0

    iget-object v3, v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;->type:Ljava/lang/String;

    invoke-interface {v1, v2, v3}, Lorg/objectweb/asm/MethodVisitor;->visitTypeInsn(ILjava/lang/String;)V

    .line 176
    .end local v0           #newHandler:Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;
    :cond_0
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    invoke-interface {v1, p1}, Lorg/objectweb/asm/MethodVisitor;->visitLabel(Lorg/objectweb/asm/Label;)V

    .line 177
    return-void
.end method

.method public visitMethodInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4
    .parameter "opcode"
    .parameter "owner"
    .parameter "name"
    .parameter "desc"

    .prologue
    const/16 v3, 0xb8

    .line 100
    packed-switch p1, :pswitch_data_0

    .line 134
    :cond_0
    :goto_0
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    invoke-interface {v0, p1, p2, p3, p4}, Lorg/objectweb/asm/MethodVisitor;->visitMethodInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 135
    :goto_1
    return-void

    .line 103
    :pswitch_0
    const-string v0, "getProperty"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "java/lang/System"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 106
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    sget-object v1, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->NEW_SYSTEM_PROPERTIES_CLASS:Ljava/lang/String;

    invoke-interface {v0, p1, v1, p3, p4}, Lorg/objectweb/asm/MethodVisitor;->visitMethodInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 111
    :pswitch_1
    const-string v0, "getResourceAsStream"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "java/lang/Class"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 115
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    sget-object v1, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->NEW_RESOURCE_LOADER_CLASS:Ljava/lang/String;

    const-string v2, "(Ljava/lang/Class;Ljava/lang/String;)Ljava/io/InputStream;"

    invoke-interface {v0, v3, v1, p3, v2}, Lorg/objectweb/asm/MethodVisitor;->visitMethodInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 117
    :cond_1
    const-string v0, "printStackTrace"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "java/lang/Throwable"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 119
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    sget-object v1, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->INJECTED_CLASS:Ljava/lang/String;

    const-string v2, "(Ljava/lang/Throwable;)V"

    invoke-interface {v0, v3, v1, p3, v2}, Lorg/objectweb/asm/MethodVisitor;->visitMethodInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 124
    :pswitch_2
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->config:Lorg/microemu/app/classloader/InstrumentationConfig;

    invoke-virtual {v0}, Lorg/microemu/app/classloader/InstrumentationConfig;->isEnhanceThreadCreation()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "<init>"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 125
    const-string v0, "java/util/Timer"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 126
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletTimer:Ljava/lang/Class;

    if-nez v0, :cond_2

    const-string v0, "org.microemu.app.util.MIDletTimer"

    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletTimer:Ljava/lang/Class;

    :goto_2
    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->codeName(Ljava/lang/Class;)Ljava/lang/String;

    move-result-object p2

    goto :goto_0

    :cond_2
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletTimer:Ljava/lang/Class;

    goto :goto_2

    .line 127
    :cond_3
    const-string v0, "java/lang/Thread"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 128
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletThread:Ljava/lang/Class;

    if-nez v0, :cond_4

    const-string v0, "org.microemu.app.util.MIDletThread"

    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletThread:Ljava/lang/Class;

    :goto_3
    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->codeName(Ljava/lang/Class;)Ljava/lang/String;

    move-result-object p2

    .restart local p2
    goto/16 :goto_0

    :cond_4
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletThread:Ljava/lang/Class;

    goto :goto_3

    .line 100
    :pswitch_data_0
    .packed-switch 0xb6
        :pswitch_1
        :pswitch_2
        :pswitch_0
    .end packed-switch
.end method

.method public visitTryCatchBlock(Lorg/objectweb/asm/Label;Lorg/objectweb/asm/Label;Lorg/objectweb/asm/Label;Ljava/lang/String;)V
    .locals 3
    .parameter "start"
    .parameter "end"
    .parameter "handler"
    .parameter "type"

    .prologue
    .line 149
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->config:Lorg/microemu/app/classloader/InstrumentationConfig;

    invoke-virtual {v1}, Lorg/microemu/app/classloader/InstrumentationConfig;->isEnhanceCatchBlock()Z

    move-result v1

    if-eqz v1, :cond_2

    if-eqz p4, :cond_2

    .line 150
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->catchInfo:Ljava/util/HashMap;

    if-nez v1, :cond_0

    .line 151
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    iput-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->catchInfo:Ljava/util/HashMap;

    .line 153
    :cond_0
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->catchInfo:Ljava/util/HashMap;

    invoke-virtual {v1, p3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;

    .line 154
    .local v0, newHandler:Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;
    if-nez v0, :cond_1

    .line 155
    new-instance v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;

    .end local v0           #newHandler:Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;
    invoke-direct {v0, p4}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;-><init>(Ljava/lang/String;)V

    .line 156
    .restart local v0       #newHandler:Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->catchInfo:Ljava/util/HashMap;

    invoke-virtual {v1, p3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 158
    :cond_1
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    iget-object v2, v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;->label:Lorg/objectweb/asm/Label;

    invoke-interface {v1, p1, p2, v2, p4}, Lorg/objectweb/asm/MethodVisitor;->visitTryCatchBlock(Lorg/objectweb/asm/Label;Lorg/objectweb/asm/Label;Lorg/objectweb/asm/Label;Ljava/lang/String;)V

    .line 162
    .end local v0           #newHandler:Lorg/microemu/app/classloader/ChangeCallsMethodVisitor$CatchInformation;
    :goto_0
    return-void

    .line 160
    :cond_2
    iget-object v1, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    invoke-interface {v1, p1, p2, p3, p4}, Lorg/objectweb/asm/MethodVisitor;->visitTryCatchBlock(Lorg/objectweb/asm/Label;Lorg/objectweb/asm/Label;Lorg/objectweb/asm/Label;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public visitTypeInsn(ILjava/lang/String;)V
    .locals 1
    .parameter "opcode"
    .parameter "desc"

    .prologue
    .line 138
    const/16 v0, 0xbb

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->config:Lorg/microemu/app/classloader/InstrumentationConfig;

    invoke-virtual {v0}, Lorg/microemu/app/classloader/InstrumentationConfig;->isEnhanceThreadCreation()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 139
    const-string v0, "java/util/Timer"

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 140
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletTimer:Ljava/lang/Class;

    if-nez v0, :cond_1

    const-string v0, "org.microemu.app.util.MIDletTimer"

    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletTimer:Ljava/lang/Class;

    :goto_0
    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->codeName(Ljava/lang/Class;)Ljava/lang/String;

    move-result-object p2

    .line 145
    :cond_0
    :goto_1
    iget-object v0, p0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->mv:Lorg/objectweb/asm/MethodVisitor;

    invoke-interface {v0, p1, p2}, Lorg/objectweb/asm/MethodVisitor;->visitTypeInsn(ILjava/lang/String;)V

    .line 146
    return-void

    .line 140
    :cond_1
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletTimer:Ljava/lang/Class;

    goto :goto_0

    .line 141
    :cond_2
    const-string v0, "java/lang/Thread"

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 142
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletThread:Ljava/lang/Class;

    if-nez v0, :cond_3

    const-string v0, "org.microemu.app.util.MIDletThread"

    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletThread:Ljava/lang/Class;

    :goto_2
    invoke-static {v0}, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->codeName(Ljava/lang/Class;)Ljava/lang/String;

    move-result-object p2

    .restart local p2
    goto :goto_1

    :cond_3
    sget-object v0, Lorg/microemu/app/classloader/ChangeCallsMethodVisitor;->class$org$microemu$app$util$MIDletThread:Ljava/lang/Class;

    goto :goto_2
.end method
